-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[runtime_cxxmodules] Fix '_FilesystemClock' build warning with macos 15.4 and mac-beta #18515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[runtime_cxxmodules] Fix '_FilesystemClock' build warning with macos 15.4 and mac-beta #18515
Conversation
d470f59 to
58f80ab
Compare
|
Does this relate to: #16494 (see also the (many) comments) |
|
Oops, yes. Did not keep track of that. Thanks :) |
58f80ab to
2d0cbd9
Compare
Test Results 18 files 18 suites 4d 6h 22m 27s ⏱️ For more details on these failures, see this check. Results for commit 22a4948. ♻️ This comment has been updated with latest results. |
2d0cbd9 to
e58df92
Compare
Including <chrono> first forces the private clock module to be imported
before <fstream> transitively includes <filesystem>
Fixes the warning:
```
[79/2727] Generating G__Core.cxx, ../lib/Core.pcm
In module 'std' imported from input_line_1:1:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/c++/v1/__chrono/time_point.h:33:52: error: definition of '_FilesystemClock' must be imported from module 'std.std_private_chrono_file_clock' before it is required
template <class _Clock, class _Duration = typename _Clock::duration>
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/c++/v1/__chrono/time_point.h:33:1: note: in instantiation of default argument for 'time_point<std::filesystem::_FilesystemClock>' required here
template <class _Clock, class _Duration = typename _Clock::duration>
^~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/c++/v1/__chrono/file_clock.h:49:8: note: definition here is not reachable
struct _FilesystemClock {
```
e58df92 to
22a4948
Compare
vgvassilev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
hahnjo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This Pull request:
Including
chronofirst forces the private clock module to be imported beforefstreamtransitively includesfilesystemFixes the warning:
Upstream issue: llvm/llvm-project#138683
Changes or fixes:
Checklist:
This PR fixes #